package com.bjb.vr.remote.ws.rabbitmq.utils;

import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class CommonSender {
    @Autowired
    private RabbitTemplate rabbitTemplate;

    public void send(String exchange, String routeKey, String message) {
        rabbitTemplate.convertAndSend(exchange, routeKey, message);
    }

}
